Add rolldice reference application (FastAPI)#5244
Conversation
Implements the OpenTelemetry reference application specification [1] with both uninstrumented and instrumented versions of a FastAPI dice-rolling service. The instrumented version uses declarative (file-based) YAML configuration for the telemetry pipeline with OTLP HTTP and console exporters for all three signal types (traces, metrics, logs). [1] https://opentelemetry.io/docs/getting-started/reference-application-specification/ Assisted-by: Claude Opus 4.6
Add OS resource detector, OTEL_LOG_LEVEL diagnostic verbosity control, dynamic OTEL_SERVICE_NAME support via env var substitution, and a CI workflow that smoke-tests both the instrumented and uninstrumented variants of the rolldice application. Co-Authored-By: Claude Opus 4.6 (1M context)
Update all license headers to the SPDX two-line format, fix import sorting and formatting per ruff, and add a towncrier changelog fragment.
|
@MikeGoldsmith , could you take a look at this when you get a chance? |
|
Thank you for this @reggied ! Have we considered putting it in docs/examples instead? https://github.com/open-telemetry/opentelemetry-python/tree/main/docs/examples |
Hi @tammy-baylis-swi ! I'm new to this repo, so the current location was a best guess. I didn't put it in |
Nice, welcome 👋 I suggest |
|
This PR has been automatically marked as stale because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 days of this comment. |
Description
Implements the OpenTelemetry reference application specification [1] with both uninstrumented and instrumented versions of a FastAPI dice-rolling service. The instrumented version uses declarative (file-based) YAML configuration for the telemetry pipeline with OTLP HTTP and console exporters for all three signal types (traces, metrics, logs).
[1] https://opentelemetry.io/docs/getting-started/reference-application-specification/
Fixes # #5167
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Does This PR Require a Contrib Repo Change?
Checklist: